<!DOCTYPE html>
<html lang="zh-CN">





<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/apple-touch-icon.png">
  <link rel="icon" type="image/png" href="/blog/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="兴趣使然的个人博客">
  <meta name="author" content="Ilirus">
  <meta name="keywords" content>
  <title>Ilirus</title>

  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css">



<!-- 主题依赖的图标库，不要自行修改 -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_yg9cfy8wd6.css">

<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">

<link rel="stylesheet" href="/blog/css/main.css">

<!-- 自定义样式保持在最底部 -->


  <script src="/blog/js/utils.js"></script>
</head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/blog/">&nbsp;<strong>Ilirus</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background" parallax=true
         style="background: url('/blog/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/12/10/使用Vue-cli搭建Vue项目/">使用Vue-cli搭建Vue项目</a>

      <a href="/blog/2018/12/10/使用Vue-cli搭建Vue项目/" class="index-excerpt">
        
        
          
        
        <div>使用Vue-cli搭建Vue项目安装Vue-cli在安装Vue-cli之前需要先安装node环境以及npm包管理工具
安装好之后可以通过以下命令查看版本:: 查看node版本
node -v

:: 查看npm版本
npm -v
全局安装Vue-clinpm install @vue/cli -g
:: 或者
yarn global add @vue/cli
安装后使用vue --version来</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-12-10
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/Vue-js/">Vue.js</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/Vue-js/">Vue.js</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/12/08/Kotlin学习笔记03/">Kotlin学习笔记03</a>

      <a href="/blog/2018/12/08/Kotlin学习笔记03/" class="index-excerpt">
        
        
          
        
        <div>Kotlin中的类类伴生对象由于Kotlin没有静态方法，在大多数情况下，官方建议简单地使用包级函数。如果需要一个可以无需类实例来调用，但需要访问类内部的函数。可以把它写成一个用companion修饰的对象内方法。companion修饰的对象为伴生对象。companion object &#123;
    fun isEmpty(str: String): Boolean &#123;
    </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-12-08
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Kotlin/">Kotlin</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Kotlin/">Kotlin</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/12/06/Kotlin学习笔记02/">Kotlin学习笔记02</a>

      <a href="/blog/2018/12/06/Kotlin学习笔记02/" class="index-excerpt">
        
        
          
        
        <div>Kotlin基本语法变量、常量的定义[修饰符] &lt;var|val&gt; &lt;名称&gt; : &lt;类型&gt; = &lt;赋值&gt;
//var 代表变量，可被更改
var age: Int = 18
//val 代表常量, 定义后不能被修改, 定义时必须赋值
val name: String = "Ilirus"
基本数据类型var boolean:Boolean = fal</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-12-06
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Kotlin/">Kotlin</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Kotlin/">Kotlin</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/12/05/Kotlin学习笔记01/">Kotlin学习笔记01</a>

      <a href="/blog/2018/12/05/Kotlin学习笔记01/" class="index-excerpt">
        
        
          
        
        <div>Kotlin项目的创建创建一个Kotlin项目
Create Project -&gt; Kotlin
选择Kotlin/JVM 或者 Kotlin/JS
选择SDK
选择Library


创建包
创建.kt文件

在创建的.kt文件中写入以下代码，运行。fun main(args: Array&lt;String&gt;)&#123;
    println("Hello Kotlin!")
</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-12-05
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Kotlin/">Kotlin</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Kotlin/">Kotlin</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/10/19/笔记-SpringBoot学习笔记05/">[笔记]SpringBoot学习笔记05</a>

      <a href="/blog/2018/10/19/笔记-SpringBoot学习笔记05/" class="index-excerpt">
        
        
          
        
        <div>使用JUnit进行单元测试生成测试类在需要进行测试的类中 点击右键-&gt;Go To-&gt;Test 或者 使用快捷键Ctrl+Shift+T生成测试类
生成的类public class CustomDaoTest &#123;
    @Resource private CustomDao dao;

    @Test
    public void findCustomByName() </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-10-19
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Springboot/">Springboot</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Java/">Java</a>
            
              <a href="/blog/tags/JUnit/">JUnit</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/10/16/笔记-SpringBoot学习笔记04/">[笔记]SpringBoot学习笔记04</a>

      <a href="/blog/2018/10/16/笔记-SpringBoot学习笔记04/" class="index-excerpt">
        
        
          
        
        <div>Spring打包和自定义日志Spring打包jar包View-&gt;Tool Windows-&gt;Maven Project展开Lifecycle右键packageRun Maven Build在target文件夹中找到打包出来的.jar文件使用java -jar &lt;jarName&gt; 命令启动</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-10-16
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Springboot/">Springboot</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Java/">Java</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/09/28/笔记-SpringBoot学习笔记03/">[笔记]SpringBoot学习笔记03</a>

      <a href="/blog/2018/09/28/笔记-SpringBoot学习笔记03/" class="index-excerpt">
        
        
          
        
        <div>Thymeleaf网页模板使用控制器方法中添加Model//import org.springframework.ui.Model;
@RequestMapping(value = &#123;""&#125;)
private String DefPage(Model model)&#123;
    String name = "Ilirus";
    model.addAttribute(</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-09-28
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Springboot/">Springboot</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Java/">Java</a>
            
              <a href="/blog/tags/Thymeleaf/">Thymeleaf</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/09/20/笔记-SpringBoot学习笔记02/">[笔记]SpringBoot学习笔记02</a>

      <a href="/blog/2018/09/20/笔记-SpringBoot学习笔记02/" class="index-excerpt">
        
        
          
        
        <div>使用JPA来链接数据库环境配置:JDK: Java 8IDE: Intellij IDEA服务器: Tomcat 9
创建JPA项目
Create Project -&gt; Spring Initializr
选择JDK
选择Initializr Service URL (https://start.spring.io)
选择插件
Core -&gt; DevTools
Web -&gt; we</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-09-20
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Springboot/">Springboot</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Java/">Java</a>
            
              <a href="/blog/tags/JPA/">JPA</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/09/11/笔记-SpringBoot学习笔记01/">[笔记]SpringBoot学习笔记01</a>

      <a href="/blog/2018/09/11/笔记-SpringBoot学习笔记01/" class="index-excerpt">
        
        
          
        
        <div>Spring学习笔记环境配置:JDK: Java 8IDE: Intellij IDEA服务器: Tomcat 9
在IDEA中创建Spring项目
Create Project -&gt; Spring Initializr
选择JDK
选择Initializr Service URL (https://start.spring.io)
选择插件
Core -&gt; DevTools
Web </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-09-11
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/学习笔记/">学习笔记</a>
            
              <a href="/blog/categories/学习笔记/Springboot/">Springboot</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/Java/">Java</a>
            
              <a href="/blog/tags/SpringBoot/">SpringBoot</a>
            
          </div>
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
    <div class="col-12 col-md-12 mx-auto index-info">
      <a class="index-header" href="/blog/2018/08/26/初识SCSS/">初识SCSS</a>

      <a href="/blog/2018/08/26/初识SCSS/" class="index-excerpt">
        
        
          
        
        <div>初识SCSSSass/SCSS 的区别SCSS是Sass3 引入的新语法，其语法完全兼容CSS3，并且继承了Sass的功能。
Sass和SCSS的区别主要有以下两点:

文件拓展名不同  Sass文件以 .sass 后缀为拓展名，SCSS文件以 .scss 后缀为拓展名。

语法不同  Sass以缩进式语法规则来书写，不带{}和;，而SCSS的语法书写则与CSS相似。

</div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>&nbsp;2018-08-26
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/CSS预处理/">CSS预处理</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/CSS/">CSS</a>
            
              <a href="/blog/tags/Sass/">Sass</a>
            
          </div>
        
      </div>
    </div>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <a class="extend prev" rel="prev" href="/blog/page/4/"><i class="iconfont icon-arrowleft"></i></a><a class="page-number" href="/blog/">1</a><span class="space">&hellip;</span><a class="page-number" href="/blog/page/3/">3</a><a class="page-number" href="/blog/page/4/">4</a><span class="page-number current">5</span><a class="page-number" href="/blog/page/6/">6</a><a class="extend next" rel="next" href="/blog/page/6/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    

    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/blog/js/debouncer.js" ></script>
<script  src="/blog/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/blog/js/lazyload.js" ></script>
  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/blog/js/clipboard-use.js" ></script>









  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "一个兴趣使然的个人博客&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>





  <script  src="/blog/js/local-search.js" ></script>
  <script>
    var path = "/blog/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>









  
  
    <script type="text/javascript">
      //定义获取词语下标
      var a_idx = 0;
      jQuery(document).ready(function ($) {
        //点击body时触发事件
        $("body").click(function (e) {
          //需要显示的词语
          var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正", "法治", "爱国", "敬业", "诚信", "友善");
          //设置词语给span标签
          var $i = $("<span/>").text(a[a_idx]);
          //下标等于原来下标+1  余 词语总数
          a_idx = (a_idx + 1) % a.length;
          //获取鼠标指针的位置，分别相对于文档的左和右边缘。
          //获取x和y的指针坐标
          var x = e.pageX, y = e.pageY;
          //在鼠标的指针的位置给$i定义的span标签添加css样式
          $i.css({
            "z-index": 999,
            "top": y - 20,
            "left": x,
            "position": "absolute",
            "font-weight": "bold",
            "color": rand_color()
          });
          // 随机颜色
          function rand_color() {
            return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
          }
          //在body添加这个标签
          $("body").append($i);
          //animate() 方法执行 CSS 属性集的自定义动画。
          //该方法通过CSS样式将元素从一个状态改变为另一个状态。CSS属性值是逐渐改变的，这样就可以创建动画效果。
          //详情请看http://www.w3school.com.cn/jquery/effect_animate.asp
          $i.animate({
            //将原来的位置向上移动180
            "top": y - 180,
            "opacity": 0
            //1500动画的速度
          }, 1500, function () {
            //时间到了自动删除
            $i.remove();
          });
        });
      })
      ;
    </script>
  














<script src="/blog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginModelPath":"assets/","model":{"jsonPath":"/blog/live2dw/assets/tororo.model.json"},"display":{"position":"left","width":300,"height":300},"mobile":{"show":false},"log":false,"pluginJsPath":"lib/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
